import threading
import time

a = threading.local()


def worker1():
    a.x = 0
    for i in range(5):
        time.sleep(0.1)
        a.x += 1
    print('{} is running , x is {},{},{}'.format(threading.current_thread().name, a.x, threading.currentThread(),threading.current_thread()))


for i in range(3):
    threading.Thread(target=worker1).start()